$("#b1").click(function () {
    $(".m-item").toggleClass("m-mobile-hide");
});
$('.ui.dropdown').dropdown({
    on: 'hover'
})
$('.ui.form').form({
    fields: {
        title: {
            identifier: 'title',
            rules: [{
                type: 'empty',
                prompt: '标题：请输入活动标题'
            }]
        }
    }
})
var contentEditor;
$(function () {
    contentEditor = editormd({
        id: "md-content",
        width: "100%",
        height: 640,
        syncScrolling: "single",
        path: "/editor.md-master/lib/"
    });

    /*
    // or
    testEditor = editormd({
        id      : "test-editormd",
        width   : "90%",
        height  : 640,
        path    : "../lib/"
    });
    */
});

function PageRefresh() {
    window.location = window.location.pathname;
}